package domain;

import java.sql.Date;
import java.util.ArrayList;
import java.util.Random;

public class Activity extends CreateFactory {
	
	private int id;
	private int number;
	private String desc;
	private Date startDate;
	private int hours;
	private String deliverable;
	private ArrayList<Task> myTaskList;
	Random rndm;
	
	public Activity(int id, int number, String desc, Date startDate, int hours,
			String deliverable, ArrayList<Task> myTaskList) {
		super();
		this.id = rndm.nextInt();
		this.number = number;
		this.desc = desc;
		this.startDate = startDate;
		this.hours = hours;
		this.deliverable = deliverable;
		this.myTaskList = myTaskList;
	}

	public Activity() {
		super();
	}

	public Activity create(int number, String desc, Date startDate, int hours, String deliverable)
	{
		Activity myActivity = new Activity();
		myActivity.setId(rndm.nextInt());
		myActivity.setNumber(number);
		myActivity.setDesc(desc);
		myActivity.setStartDate(startDate);
		myActivity.setHours(hours);
		myActivity.setDeliverable(deliverable);
		return myActivity;
		
		
	}
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public int getHours() {
		return hours;
	}

	public void setHours(int hours) {
		this.hours = hours;
	}

	public String getDeliverable() {
		return deliverable;
	}

	public void setDeliverable(String deliverable) {
		this.deliverable = deliverable;
	}

	public void destroy()
	{
		
	}

	public ArrayList<Task> getMyTaskList() {
		return myTaskList;
	}

	public void setMyTaskList(ArrayList<Task> myTaskList) {
		this.myTaskList = myTaskList;
	}
}
